<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

//Route::middleware('auth:api')->get('/user', function (Request $request) {
//    return $request->user();
//});
Route::resource('/article','Web\ArticleController',['only'=>['show']]);
Route::prefix('candy')->group(function (){
    Route::get('/images','Api\CandyController@imageIndex');
    Route::get('/story','Api\CandyController@storyIndex');
    Route::get('/tech','Api\CandyController@techIndex');
    Route::get('/config','Api\CandyController@getConfig');
    Route::get('/videos','Api\CandyController@videoIndex');
    Route::post('/content','Api\CandyController@ContentCreate');
    Route::post('/uploadStrImageToOss','Api\CandyController@imageUploadToOss');
    Route::post('/storyCreate','Api\CandyController@storyCreate');
    Route::get('/labList','Api\CandyController@laboratoryIndex');
});

